You are here: Lua Scripting Resources eGuide > Introduction to Writing Lua Scripts > Writing Lua Scripts > Saving Script Applications

Saving Script Applications

Clicking Set Script resets (updates) a script application in a TI‑Nspire™ or PublishView™ document. However, the script and script application are not saved until you save the document. If you close the document or close the TI‑Nspire™ software without saving, work on the script is lost.

To ensure the script application is saved after all work is complete, follow these steps.

1. From the Script Editor window, click Set Script to reset (update) the script application in the document.
2. From an open document, click File > Save Document to save changes to the TI‑Nspire™ or PublishView™ document.

Note: To ensure work is backed up, set the script and save the document frequently.